package com.laiketui.app.api.bargain;

import com.laiketui.domain.vo.MainVo;
import com.laiketui.core.exception.LaiKeAPIException;

import java.util.Map;

/**
 * 砍价
 *
 * @author Trick
 * @date 2021/4/16 15:17
 */
public interface BargainService {

    /**
     * 获取砍价商品列表
     *
     * @param vo -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/16 10:33
     */
    Map<String, Object> getBargainGoodsList(MainVo vo) throws LaiKeAPIException;

    /**
     * 我的砍价
     *
     * @param vo -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/16 17:28
     */
    Map<String, Object> mybargain(MainVo vo) throws LaiKeAPIException;


    /**
     * 获取砍价规则
     *
     * @param vo -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/19 17:21
     */
    Map<String, Object> getRule(MainVo vo) throws LaiKeAPIException;


    /**
     * 创建砍价订单
     *
     * @param vo        -
     * @param bargainId -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/19 10:12
     */
    Map<String, Object> createbargain(MainVo vo, int bargainId) throws LaiKeAPIException;


    /**
     * 获取砍价订单详情
     *
     * @param vo      -
     * @param orderno -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/19 17:27
     */
    Map<String, Object> getgoodsdetail(MainVo vo, String orderno) throws LaiKeAPIException;


    /**
     * 好友帮砍
     *
     * @param vo      -
     * @param orderno -
     * @return Map
     * @throws LaiKeAPIException -
     * @author Trick
     * @date 2021/4/20 10:45
     */
    Map<String, Object> helpbargain(MainVo vo, String orderno) throws LaiKeAPIException;
}
